<template>
    <div>
        <van-field label="工作流名称" placeholder="请输入工作流名称" v-model="name"></van-field>
        <van-button @click="add">提交工作流</van-button>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                name:''
            }
        },
        methods: {
            add(){
                this.$axios.post('/work/add/',{name:this.name}).then(res=>{
                    console.log(this.name)
                })
            }
        },
    }
</script>

<style scoped>

</style>